package numbers;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.Test;


/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 13.06.14
 * Time: 20:09
 * To change this template use File | Settings | File Templates.
 */
public class SYMPLEtest {



        public static boolean isPrime(int N) {
        if (N < 2) return false;
        for (int i = 2; i*i <= N; i++)
            if (N % i == 0) return false;
        return true;
    }


    @Test
    public void info(){
        Assert.assertTrue(isPrime(5));
    }
    }

